A good answer might be:

Yes.


Prefix Increment Operator

The increment operator ++ can be put in front of a variable. When it is put in front of a variable (as in ++counter) it is called a prefix operator. When it is put behind a variable (as in counter++) it is called a postfix operator. Both ways increment the variable. However:

++counter means increment before using.
counter++ means increment after using.

When the increment operator is used as part of an arithmetic expression you must distinguish between prefix and postfix operators.

int sum = 0;
int counter = 10;

sum = ++counter ;

System.out.println("sum: "+ sum " + counter: " + counter );

This fragment requires careful inspection:

QUESTION 6:

Inspect the following code:

int x = 99;
int y = 10;

y = ++x ; // prefix increment operator

System.out.println("x: " + x + "  y: " + y );

What does this fragment write out?